package com.lw.smartdevice.mapper;

import com.lw.smartdevice.pojo.SysDevice;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Administrator
 * @version 1.0
 * @description:
 * @date 2022/3/22 16:52
 */
public interface SysDeviceMapper {

    void addDevice(SysDevice device);

    @Select("select * from sys_device where device_id=#{deviceId}")
    SysDevice findById(String deviceId);


    int updateById(SysDevice device);


    List<SysDevice> findAll();


}
